]> dgit.raspbian.org Git - gnome-shell.git/commit
search: Defer updating results on allocation changes until redraw
authorJonas Dreßler <verdre@v0yd.nl>
Wed, 7 Aug 2019 15:39:25 +0000 (17:39 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 8 Aug 2019 17:37:12 +0000 (17:37 +0000)
commit21966afbc6992fa825217666c2f7de55e1d61be5
tree701eec615584fe80f1c5846288427b69a23ba462
parent68e3f74ffd4f1c01e7f3d1c6a0fd90686188843d
search: Defer updating results on allocation changes until redraw

Since the `notify::allocation` signal will obviously get emitted while
the actor is inside an allocation cycle and we might end up doing
changes to its allocation inside `updateSearch` by hiding or showing the
actor (which queues a relayout), we get a warning from Clutter.

Fix this by delaying the call to the parent method until the next
redraw, which should happen a few moments after the current relayout.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/672
js/ui/search.js